<?php
/**
* VirtueMart Full Category List Module for Joomla! and Virtuemart: 
* displays the list of categories and sub-categories in menu style.
* @author		Andrew Patton
* @version		1.1
* @copyright	(C) 2010 Andrew Patton. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* This module is free software.
* See COPYRIGHT.php for copyright notices and details.
*/

/// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Load the virtuemart main parse code (for using ps_DB, vmRequest, etc. in the helper files)
require_once( JPATH_SITE .DS. 'components' .DS. 'com_virtuemart' .DS. 'virtuemart_parser.php' );

// Include the syndicate functions only once
require_once( dirname(__FILE__).DS.'helper.php' );

// Output
//modVMFullCategoryList::vmFCLBuildMenu(0, 0, $params);
// $menu = modVMFullCategoryList::vmFCLBuildMenu(0, 0, $params);

require( JModuleHelper::getLayoutPath( 'mod_vm_prod_cat_full' ) );

// TODO: use helper function to generate an object list to represent the menu
// Use a parameter called depth to specify how many levels the menu goes to for output
// General:
//$menu = new stdClass();
//$menu->depth = $totalLevel;
//$menu->menuclass = $params->get('menuclass_sfx');
// Specific to each menu item:
//$menu->level = $level;
//$menu->name = htmlspecialchars($row->category_name, ENT_COMPAT, 'UTF-8');
//$menu->link;
//$menu->itemid;
//$menu->class;
//$menu->current; // either '' or 'id="current"'
//$menu->child; // either false or the child object

?>